package com.bean.jaxb.user;

import java.util.ArrayList;
import java.util.Date;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name="root")
public class UserVo {
	
	private UserInfo info;	
	private String acc;	
	private String name;
	private String email;
	private String siteName;
	private String groupId;
	private String groupName;
	private String role;
	private String roleName;
	private String accLocked;
	private String timezone;
	private String orderBy;
	private String autoSave;
	private String msgTodo;
	private String msgChg;
	private String permission;
	private String loginType;
	private String stamp;
	
	private ArrayList<EntityRow> editor = new ArrayList<EntityRow>();
	private ArrayList<EntityRow> auditor = new ArrayList<EntityRow>();
	private ArrayList<EntityRow> app = new ArrayList<EntityRow>();
	
	
	@XmlElement(name="info")
	public UserInfo getInfo() {
		return info;
	}
	public void setInfo(UserInfo info) {
		this.info = info;
	}
	
	@XmlElement(name="acc")
	public String getAcc() {
		return acc;
	}
	public void setAcc(String acc) {
		this.acc = acc;
	}
	
	@XmlElement(name="name")
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	@XmlElement(name="email")
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	
	@XmlElement(name="site_name")
	public String getSiteName() {
		return siteName;
	}
	public void setSiteName(String siteName) {
		this.siteName = siteName;
	}
	
	@XmlElement(name="group_id")
	public String getGroupId() {
		return groupId;
	}
	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}
	
	@XmlElement(name="group_name")
	public String getGroupName() {
		return groupName;
	}
	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}
	
	@XmlElement(name="role")
	public String getRole() {
		return role;
	}
	public void setRole(String role) {
		this.role = role;
	}
	
	@XmlElement(name="role_name")
	public String getRoleName() {
		return roleName;
	}
	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}
	
	@XmlElement(name="acc_locked")
	public String getAccLocked() {
		return accLocked;
	}
	public void setAccLocked(String accLocked) {
		this.accLocked = accLocked;
	}
	
	@XmlElement(name="timezone")
	public String getTimezone() {
		return timezone;
	}
	public void setTimezone(String timezone) {
		this.timezone = timezone;
	}
	
	@XmlElement(name="order_by")
	public String getOrderBy() {
		return orderBy;
	}
	public void setOrderBy(String orderBy) {
		this.orderBy = orderBy;
	}
	
	@XmlElement(name="auto_save")
	public String getAutoSave() {
		return autoSave;
	}
	public void setAutoSave(String autoSave) {
		this.autoSave = autoSave;
	}
	
	@XmlElement(name="msg_todo")
	public String getMsgTodo() {
		return msgTodo;
	}
	public void setMsgTodo(String msgTodo) {
		this.msgTodo = msgTodo;
	}
	
	@XmlElement(name="msg_chg")
	public String getMsgChg() {
		return msgChg;
	}
	public void setMsgChg(String msgChg) {
		this.msgChg = msgChg;
	}
	
	@XmlElement(name="permission")
	public String getPermission() {
		return permission;
	}
	public void setPermission(String permission) {
		this.permission = permission;
	}
	
	@XmlElement(name="loginType")
	public String getLoginType() {
		return loginType;
	}
	public void setLoginType(String loginType) {
		this.loginType = loginType;
	}
	
	@XmlElementWrapper(name="editor")
    @XmlElement(name="row")	
	public ArrayList<EntityRow> getEditor() {
		return editor;
	}
	public void setEditor(ArrayList<EntityRow> editor) {
		this.editor = editor;
	}
	
	@XmlElementWrapper(name="auditor")
    @XmlElement(name="row")	
	public ArrayList<EntityRow> getAuditor() {
		return auditor;
	}
	public void setAuditor(ArrayList<EntityRow> auditor) {
		this.auditor = auditor;
	}
	
	@XmlElementWrapper(name="app")
    @XmlElement(name="row")	
	public ArrayList<EntityRow> getApp() {
		return app;
	}
	public void setApp(ArrayList<EntityRow> app) {
		this.app = app;
	}
	
	@XmlElement(name="stamp")
	public String getStamp() {
		return stamp;
	}
	public void setStamp(String stamp) {
		this.stamp = stamp;
	}
	
	

}
